import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
    // {
    {
      path: '/',
      name: 'Login',
      component: () => import('../views/LoginView.vue'),
      // path: '/',
      // name: 'MainView',
      // component: () => import('../views/MainView.vue'),
    },
    {
      // path: '/Login',
      // name: 'Login',
      // component: () => import('../views/Login.vue'),
      path: '/MainView',
      name: 'MainView',
      component: () => import('../views/MainView.vue'),

      children: [

        {
          path: '/Unit',
          name: 'Unit',
          component: () => import('../views/Organization/Unit.vue')
        },
        {
          path: '/UnitList',
          name: 'UnitList',
          component: () => import('../views/Organization/UnitList.vue')
        },
        {
          path: '/Department',
          name: 'Department',
          component: () => import('../views/Organization/Department.vue')
        },
        {
          path: '/DepartmentList',
          name: 'DepartmentList',
          component: () => import('../views/Organization/DepartmentList.vue')
        },
        //种羊档案新增
        {
          path: '/SheepFileAddView',
          name: 'SheepFileAddView',
          component: () => import('../views/SheepFile/SheepFileAddView.vue')
        },
        //后裔档案新增
        {
          path: '/ProgenyFileAddView',
          name: 'ProgenyFileAddView',
          component: () => import('../views/SheepFile/ProgenyFileAddView.vue')
        },
        //羊只档案列表展示
        {
          path: '/SheepFileListView',
          name: 'SheepFileListView',
          component: () => import('../views/SheepFile/SheepFileListView.vue')
        },
        //羊只档案详情
        {
          path: '/SheepFiledetail',
          name: 'SheepFiledetail',
          component: () => import('../views/SheepFile/SheepFiledetail.vue'),
       
        },
       
        
        //种公期初
        {
          path: '/MalePeriodicList',
          name: 'MalePeriodicList',
          component: () => import('../views/Beginning/MalePeriodicList.vue')
        },
        //种公期初新增
        {
          path: '/MalePeriodicAddView',
          name: 'MalePeriodicAddView',
          component: () => import('../views/Beginning/MalePeriodicAddView.vue')
        },
        //种母期初表
        {
          path: '/FemalePeriodicAddView',
          name: 'FemalePeriodicAddView',
          component: () => import('../views/Beginning/FemalePeriodicAddView.vue')
        },
        //种母期初列表
        {
          path: '/FemalePeriodicList',
          name: 'FemalePeriodicList',
          component: () => import('../views/Beginning/FemalePeriodicList.vue')
        },
        //后裔期初新增
        {
          path: '/ProgenyPeriodicAddView',
          name: 'ProgenyPeriodicAddView',
          component: () => import('../views/Beginning/ProgenyPeriodicAddView.vue')
        },
        //后裔期初列表
        {
          path: '/ProgenyPeriodicList',
          name: 'ProgenyPeriodicList',
          component: () => import('../views/Beginning/ProgenyPeriodicList.vue')
        },
        //羊场设置

        {
          path: '/SheepFarmList',
          name: 'SheepFarmList',
          component: () => import('../views/Organization/SheepFarmList.vue')
        },
         // 种羊历史
         {
          path: '/SheepHistorySelect',
          name: 'SheepHistorySelect',
          component: () => import('../views/History/SheepHistorySelectView.vue')
        },
        // 种母分娩表
        {
          path: '/SheepChildbirthSelect',
          name: 'SheepChildbirthSelect',
          component: () => import('../views/History/SheepChildbirthSelectView.vue')
        },
        // 种羊配种表
        {
          path: '/SheepHybridizationSelect',
          name: 'SheepHybridizationSelect',
          component: () => import('../views/History/SheepHybridizationSelectView.vue')
        },
        // 种母妊检表
        {
          path: '/SheepPregnancySelect',
          name: 'SheepPregnancySelect',
          component: () => import('../views/History/SheepPregnancySelectView.vue')
        },
        // 种羊断奶表
        {
          path: '/SheepWeaningSelect',
          name: 'SheepWeaningSelect',
          component: () => import('../views/History/SheepWeaningSelectView.vue')
        },
        //羊只转舍
        {
          path: '/Transfer/SheepTransferAdd',
          name: 'SheepTransferAdd',
          component: () => import('../views/Transfer/SheepTransferAdd.vue')
        },
        {
          path: '/Transfer/SheepTransferList',
          name: 'SheepTransferList',
          component: () => import('../views/Transfer/SheepTransferList.vue')
        },
        //待配提示
        {
          path: '/Promptreport/PendingPrompts',
          name: 'PendingPrompts',
          component: () => import('../views/Promptreport/PendingPrompts.vue')
        },
        //首次妊娠提示
        {
          path: '/Promptreport/Pregnancy',
          name: 'Pregnancy',
          component: () => import('../views/Promptreport/Pregnancy.vue')
        },
        //羔羊断奶
        {
          path: '/LambWeaning/LambWeaningAdd',
          name: 'LambWeaningAdd',
          component: () => import('../views/LambWeaning/LambWeaningAdd.vue')
        },
        {
          path: '/LambWeaning/LambWeaningList',
          name: 'LambWeaningList',
          component: () => import('../views/LambWeaning/LambWeaningList.vue')
        },
        //后裔转种
        {
          path: '/DescendentAdd',
          name: 'DescendentAdd',
          component: () => import('../views/Descendent/DescendentAdd.vue')
        },
        {
          path: '/Descendent/DescendentList',
          name: 'DescendentList',
          component: () => import('../views/Descendent/DescendentList.vue')
        },
        { //栋舍管理
          path: '/BuildingList',
          name: 'BuildingList',
          component: () => import('../views/Buildings/BuildingListView.vue')
        },
        
        { //育种管理 羊只称重-新增
          path: '/SheepWeighedAdd',
          name: 'SheepWeighedAdd',
          component: () => import('../views/SheepWeigheds/SheepWeighedAddView.vue')
        },
        { //育种管理 羊只称重-显示
          path: '/SheepWeighedList',
          name: 'SheepWeighedList',
          component: () => import('../views/SheepWeigheds/SheepWeighedListView.vue')
        },
        { //育种管理 体尺测定-新增
          path: '/BodyAdd',
          name: 'BodyAdd',
          component: () => import('../views/Bodys/BodyAddView.vue')
        },
        { //育种管理 体尺测定-显示
          path: '/BodyList',
          name: 'BodyList',
          component: () => import('../views/Bodys/BodyListView.vue')
        },
        { //育种管理 品相测定-新增
          path: '/AppearancesAdd',
          name: 'AppearancesAdd',
          component: () => import('../views/Appearances/AppearancesAddView.vue')
        },
        { //育种管理 品相测定-显示
          path: '/AppearancesList',
          name: 'AppearancesList',
          component: () => import('../views/Appearances/AppearancesListView.vue')
        },
        { //提示报表 分娩提示
          path: '/ParturitionList',
          name: 'ParturitionList',
          component: () => import('../views/Parturitions/ParturitionListView.vue')
        },

        { //权限管理 权限分配
          path: '/PermissionView',
          name: 'PermissionView',
          component: () => import('../views/RBAC/PermissionView.vue')
        },
        { //权限管理 角色设置
          path: '/RolesView',
          name: 'RolesView',
          component: () => import('../views/RBAC/RolesView.vue')
        },
        { //权限管理 增加人员
          path: '/UserAddView',
          name: 'UserAddView',
          component: () => import('../views/RBAC/UserAddView.vue')
        },
        { //权限管理 查看人员
          path: '/UserListView',
          name: 'UserListView',
          component: () => import('../views/RBAC/UserListView.vue')
        },
        
        { //羊只报表羊只类型图形图
          path: '/SheepBeedTypeReport',
          name: 'SheepBeedTypeReport',
          component: () => import('../views/Report/SheepBeedTypeReport.vue')
        },
        { //羊只报表
          path: '/SheepReport',
          name: 'SheepReport',
          component: () => import('../views/Report/SheepReport.vue')
        },
      ]
    }
  ]
})

export default router